package com.lsk.netdisk.commons.authz;

import com.lsk.netdisk.commons.authz.properties.AuthzProperties;
import lombok.RequiredArgsConstructor;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan
@RequiredArgsConstructor
@EnableConfigurationProperties(AuthzProperties.class)
public class AuthzAutoConfigure {
	private final AuthzProperties authzProperties;
	@Bean
	public AuthzProperties authzProperties(){
		return authzProperties;
	}
}
